/*
 * Title:        CloudScheduler Toolkit
 * Description:  a Toolkit for Modeling and Simulation of Job Scheduling and Resource Provisioning in Cloud System
 * Licence:      GPL - http://www.gnu.org/copyleft/gpl.html
 * Author:       Fuhui Wu
 *
 * Copyright (c) 2013-2014, The National University of Defense Technology, China
 */

package org.nudt.jCloud.resourceManager;

import org.nudt.jCloud.infrastructure.Cluster;
import org.nudt.jCloud.simulation.SIMTag;
import org.nudt.jCloud.simulation.SimEvent;
import org.nudt.jCloud.simulation.VirtSlotAlloc;

public abstract class ShareStateRM extends ResManager{

	public ShareStateRM(String name, Cluster cluster) {
		super(name, cluster);
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public void processEvent(SimEvent event) {
		switch(event.getTag()){
			case SIMTag.RESOURCE_COMMIT:
				processResCommit((VirtSlotAlloc)event.getData());
				break;
		}
		
	}

	public abstract void processResCommit(VirtSlotAlloc virtSlotAlloc);


}
